<fieldset style="margin-top:20px">
<legend>Опрос</legend>
{if $norezult == '1'}
		<p>Статистика данного опроса закрыта для просмотра посетителями.</p>
		<h1 style="text-align:right;">{$poll->message}</h1>
{else}


<p style="margin-left:60px"><strong>{$poll->poll_title}</strong></p>
<br/>

	{foreach from=$items item=item}
	<div class="result_nav">
		<img src="{$item->image_small}"/>
		<p>	
			<label style="color:{$item->poll_item_color};">{$item->poll_item_title}</label>
			<span style="clear:both;display:block;margin:2px 0 2px 0px; border:1px solid #979797; background-color:{$item->poll_item_color};height:10px;width:{$item->sum|default:'0'}%"><img src="" /><small>{$item->sum|default:'0'}%</small></span>
			{*<small>{#POLL_VOTES#} {$item->poll_item_hits} ({$item->sum|default:'0'}%)</small>*}
		</p>
	</div>
		<div class="clear"></div>
	{/foreach}

{if $poll->message != ''}<h1 style="text-align:right;">{$poll->message}</h1>{/if}
<form method="post">
	<input type="button" class="button" style="width:100px" onclick="location.href='{$formaction_result}';" value="{#POLL_PUB_RESULTS#} ({$poll->sumhits})" />&nbsp;
	{*<input type="button" class="button" style="width:50px; margin-left:10px" onclick="location.href='{$formaction_archive}';" value="{#POLL_VIEW_ARCHIVES#}" />*}
</form>
{/if}


</fieldset>